package xyz.luckapp.service;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import xyz.luckapp.dao.MovieDao;
import xyz.luckapp.entity.Movie;
@Service("movieService")
public class MovieServiceImpl implements MovieService{
	@Resource
	private MovieDao movieDao;
	
	private List<Movie> movies;

	public List<Movie> getMovies() {
		if (movies!=null && movies.size()>0) {
			return movies;
		}
		movies=movieDao.getMovieInfo();
		return movies;
	}

}
